/*
 * @Description: 
 * @Author: Pengfei
 * @Date: 2021-09-24 14:02:07
 * @LastEditTime: 2021-09-28 18:27:06
 * @LastEditors: Pengfei
 */
import {createRouter, createWebHashHistory} from 'vue-router';
import staticRoutes from './staticRoutes';
import dynamicRoutes from './dynamicRoutes';

const indexRoutes: Array<any> = [
    {
        path: '/',
        redirect: '/index',
        children:[]
    },
    {
        path: '/login',
        component: () => import('@v/Login.vue'),
        name: '登录',
        children:[]
    },
]
const routes: Array<any> = [...indexRoutes, ...staticRoutes, ...dynamicRoutes]

const router = createRouter({
    history: createWebHashHistory(), //替代之前的mode，是必须的
    routes
});
export default router;